/**
 * 
 */
console.log("开始");
var $image = $('.cropper-hidden');
var $dataX = 45;
var $dataY = 49;
var $dataHeight = $('#dataHeight');
var $dataWidth = $('#dataWidth');
var $dataRotate = 0;
var $dataScaleX = 1;
var $dataScaleY = 1;
$image.cropper({
  aspectRatio: userAspectRatio,
    preview: '.avatar-preview',
  crop: function(e) {
    // Output the result data for cropping image.
      console.log("里面");
      $dataHeight.val(Math.round(e.height));
      $dataWidth.val(Math.round(e.width));
    console.log(e.x);
    console.log(e.y);
    console.log(e.width);
    console.log(e.height);
    console.log(e.rotate);
    console.log(e.scaleX);
    console.log(e.scaleY);
  }
});

var cropper = $image.data('cropper');


//==========================
